package au.edu.jcu.haldbus.examples;

import org.freedesktop.Hal.Manager;
import org.freedesktop.dbus.DBusConnection;
import org.freedesktop.dbus.DBusSigHandler;

public class TestListenerDeviceRemoved implements DBusSigHandler<Manager.DeviceRemoved> {

  public TestListenerDeviceRemoved(DBusConnection c) {
    System.out.println("TestListenerDeviceRemoved added");
  }

  public synchronized void handle(Manager.DeviceRemoved s) {
    // System.out.println("SIGNAL!!");
    System.out.println("Manager.DeviceRemoved [" + s.obj + "] for [" + s.udiRemoved + "]");
    // System.out.println("Got a DeviceRemoved signal from "+ s.obj +
    // " for "+s.udiRemoved);
  }

}
